package net.melon.stock.inst.service;

import java.util.List;

import net.melon.order.pojo.Order;
import net.melon.stock.pojo.Stock;

public interface StockService {

	void addStock(Stock entity);

	void updateStock(Stock entity);

	List<Stock> getStockListByProductId(String id);
	
	Stock getStockByProductIdAndRegionId(String productId,String regionId);

	boolean checkAddStock(Stock entity);

	void deleteStock(Integer id);

	void reduceStockByOrder(Order order);
	
}
